home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / HyperCuber Source / HyperCuber 2.0 Source.sit / HyperCuber 2.0 Source / CHyperCuberPane.h < prev    next >
Text File  |  1994-04-06  |  2KB  |  65 lines

  1. /****
  2.  * CHyperCuberPane.h
  3.  *
  4.  *    The main pane for the graphics window.
  5.  *
  6.  ****/
  7.  
  8. #pragma once
  9.  
  10. #include <CPane.h>
  11. #include <CEditText.h>
  12.  
  13. class __pasobj CCheckBox;
  14. class __pasobj CRadioControl;
  15. class __pasobj CGraphic;
  16. class __pasobj CGraphic3D;
  17. class __pasobj CGraphic4D;
  18. class __pasobj CScrollBar;
  19.  
  20. enum {mono, two_image_stereo, two_color_stereo};
  21.  
  22. class CHyperCuberPane : public CPane {
  23.  
  24.  
  25.  
  26.  public:
  27.  
  28.     CGraphic    *graphic;                    //  Graphic associated with this pane
  29.  
  30.     Boolean fAddOver;                        //  TRUE if this graphic should be drawn in AddOver mode.
  31.     Boolean    fUseNativeColors;                //  TRUE if the graphic's declared colors should be used
  32.                                             //    when drawing (otherwise, all parts of the graphic
  33.                                             //    are drawn in GraphicColor).
  34.     Boolean    fDrawOffscreen;                    //  TRUE if actual drawing should be done off-screen
  35.     Boolean    fAntialias;                        //  TRUE if the object should be antialiased
  36.     short    StereoMode;                        //  Drawing mode to use: mono, two_image_stereo, or
  37.                                             //    two_color_stereo
  38.  
  39.     RGBColor GraphicColor;                    //  The color to draw the graphic if fUseNativeColors
  40.                                             //    is FALSE.
  41.  
  42.     CGrafPort    OffscreenPort;                //  The offscreen grafport
  43.  
  44.  
  45.                                     /** Contruction/Destruction **/
  46.     void        IHyperCuberPane(CView *anEnclosure, CBureaucrat *aSupervisor,
  47.                             short aWidth, short aHeight,
  48.                             short aHEncl, short aVEncl,
  49.                             SizingOption aHSizing, SizingOption aVSizing);
  50.  
  51.     void        Dispose(void);
  52.                                     /** Drawing **/
  53.     void        Draw(Rect *area);
  54.  
  55.     void        UpdateGraphicsPanes(void);
  56.     
  57.                                     /** Mouse **/
  58.     void        DoClick(Point hitPt, short modifierKeys, long when);
  59.     
  60.                                     /** Cursor **/
  61.  
  62.     void        AdjustToEnclosure(Rect *deltaEncl);
  63.         
  64. };
  65.